<?php


namespace app\common\business;


use app\common\model\AdminUser;
use think\facade\Session;
class AdminUserSessionBusiness
{
    public static function setLoginUser($user)
    {
        $admin_user = [
            "id"=> $user['id'],
            "name"=>$user['name'],
        ];
        Session::set('admin_user', $admin_user);
    }

    public static function isNotLogin()
    {
       return empty(Session::get('admin_user'));
    }
}